package flash.sound.file.wave.tag {
  import flash.utils.IDataInput;
  
  public class WaveFormatTag extends AbstractWaveTag {

    public var audioFormat: int
    public var channels: int
    public var sampleRate: int
    public var byteRate: int
    public var blockAlign: int
    public var bitsPerSample: int

    override protected function readData(): void {  
      audioFormat = data.readUnsignedShort();   
      channels = data.readUnsignedShort();   
      sampleRate = data.readUnsignedInt();
      byteRate = data.readUnsignedInt();
      blockAlign = data.readUnsignedShort();
      bitsPerSample = data.readUnsignedShort();
    }
  }
}